package org.nashua.tt151;

/**
 * The RobotMap class holds all the constants while includes the wiring on the
 * robot
 */
public class RobotMap {
    /**
     * The RobotMap.DualAction class holds the button and axis mappings for a
     * Logitech DualAction F310 controller (when the switch is set to D)
     */
    public static class DualAction {
        public static class Axis {
            public static final int DPAD_X = 5;
            public static final int DPAD_Y = 6;
            public static final int LEFT_X = 1;
            public static final int LEFT_Y = 2;
            public static final int RIGHT_X = 3;
            public static final int RIGHT_Y = 4;
        }
        public static class Button {
            public static final int A = 2;
            public static final int B = 3;
            public static final int BACK = 9;
            public static final int LEFT_BUMPER = 5;
            public static final int LEFT_JOY_DOWN = 11;
            public static final int LEFT_TRIGGER = 7;
            public static final int RIGHT_BUMPER = 6;
            public static final int RIGHT_JOY_DOWN = 12;
            public static final int RIGHT_TRIGGER = 8;
            public static final int SELECT = 10;
            public static final int X = 1;
            public static final int Y = 4;
        }
    }
    /**
     * The RobotMap.Jaguar class holds the PWM slots that each Jaguar is
     * plugged into.
     */
    public static class Jaguar {
        public static final int BACK_LEFT = 1;
        public static final int BACK_RIGHT = 2;
        public static final int FRONT_LEFT = 3;
        public static final int FRONT_RIGHT = 4;

        public static class Power {
            public static double CREEP_POWER = 0.25;
            public static double DEFAULT_POWER = 0.5;
            public static double MAX_POWER = 1.0;
        }
    }
    /**
     * The RobotMap.Kinect class holds the mappings for the default Kinect
     * buttons and slots.
     */
     public static class Kinect {
        public static final int LEFT_ARM=1;
        public static final int RIGHT_ARM=2;
        public static class Button {
            public static final int HEAD_LEFT=1;
            public static final int HEAD_RIGHT=2;
            public static final int LEFT_LEG_BACK=8;
            public static final int LEFT_LEG_FWD=7;
            public static final int LEFT_LEG_OUT=4;
            public static final int RIGHT_LEG_BACK=6;
            public static final int RIGHT_LEG_FWD=5;
            public static final int RIGHT_LEG_OUT=3;
        }
    }
}
